<template>
    <div class="sidebar">
        <!-- body -->
    </div>
</template>

<script>
    export default {
        data() {
            return {
                items: [
                    {
                        icon: 'el-icon-setting',
                        index: 'readme',
                        title: '权限设置'
                    },
                    {
                        icon: 'el-icon-menu',
                        index: 'basetable',
                        title: 'Banner设置'
                    },
                    {
                        icon: 'el-icon-date',
                        index: 'baseform',
                        title: '功能区'
                    },
                    {
                        icon: 'el-icon-share',
                        index: 'drag',
                        title: '列表区'
                    },
                    {
                        icon: 'el-icon-view',
                        index: 'sprintlist',
                        title: '考前冲刺包'
                    }
                ]
            }
        },
        computed:{
            onRoutes(){
                return this.$route.path.replace('/','');
            }
        }
    }
</script>

<style scoped>
    .sidebar{
        display: block;
        position: absolute;
        width: 250px;
        left: 0;
        top: 70px;
        bottom:0;
        background: #2E363F;
    }
    .sidebar > ul {
        height:100%;
    }
</style>
